rotate matrix 90 degrees clockwise python

71

rotate 90 degrees clockwise counter python -

new_matrix = [[m[j][i] for j in range(len(m))] for i in range(len(m[0])-1,-1,-1)]

Comments

Submit
0 Comments